import request from '@/utils/request'
// 在card中写一个接口函数来使用

export function getCardApi(params) {
  return request({
    url: 'parking/card/list',
    method: 'GET',
    params
  })
}
export function addCardApi(data) {
  return request({
    url: 'parking/card',
    method: 'POST',
    data
  })
}
export function getCardDetailApi(id) {
  return request({
    url: `parking/card/detail/${id}`
  })
}
export function editCardAPI(data) {
  return request({
    url: 'parking/card/edit',
    method: 'PUT',
    data
  })
}
export function deleteCardAPI(ids) {
  return request({
    url: `parking/card/${ids}`,
    method: 'DELETE'
  })
}
